using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace CAIR.Lib
{
    public class EnergyFunctionFactory
    {
        public static IEnergyFunction GetEnergyFunction(EnergyFunctionTypes type)
        {
            switch (type)
            {
                case EnergyFunctionTypes.e1:
                    return new E1EnergyFunction();
                    break;
                case EnergyFunctionTypes.Entropy:
                    break;
                case EnergyFunctionTypes.Segmentation:
                    break;
                case EnergyFunctionTypes.Hog:
                    break;
            }
            return null;
        }
    }
    public interface IEnergyFunction
    {
        double GetEnergyAt(Bitmap bitmap, int row, int column);
    }
    public enum EnergyFunctionTypes
    {
        e1,
        Entropy,
        Segmentation,
        Hog
    }
}
